package cn.parus.entity.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * @Author: Axel
 * @Description: TODO 用户信息展示DTO
 **/

@Data
public class UserProfileDTO {
    private String username;

    @Email(message = "邮箱格式不正确")
    private String email;

    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;

    private Long storageQuota;
    private Long usedStorage;
    private String avatar;
    private String realName;
}
